home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Tools 1993 October - Disc 2
/
Power Tools (Disc 2)(October 1993)(HP).iso
/
hotlines
/
cshhl
/
pdsoft
/
3.txt
< prev
next >
Wrap
Text File
|
1993-05-10
|
13KB
|
382 lines
>
***********************************************************************
> * *
> * The introductory guide *
> * *
> *********************************************************************
>
>
>
>
>
>
>
> Accessing the HP-UX archive at The University of Liverpool
>
> Janet Little
> Richard Lloyd
>
> Department of Computer Science
> University of Liverpool
> P.O. Box 147
> Liverpool
> L69 3BX
> e-mail: ftp@csc.liv.ac.uk
>
> Wed 19 Aug 1992
>
>
>
> The HP-UX archive at The University of Liverpool Department
> of Computer Science contains public domain software which
> has been successfully ported to the Hewlett-Packard series
> 700; much of the software also runs under the 300/400/800
> series. This document is intended as an introductory guide
> to obtaining and installing software from the archive for
> users unfamiliar with accessing public domain archive sites.
>
>
> 1. Making contact with the site
>
> A remote archive site can be accessed using anonymous FTP
> (File Transfer Program) on the Internet network. FTP is a
> software package which enables the connection of a client
> host machine to a remote host and facilitates the transfer
> of files between them. Many archive sites can be accessed
> in this way; the Liverpool archive is just one such site. To
> use FTP it is necessary to know the address of the remote
> site which can then be supplied on the FTP command line.
> The following command will connect to the Liverpool archive:
>
> $ ftp ftp.csc.liv.ac.uk
>
> This should result in the appearance of a login prompt. In
> order to use the archive you are required to log on to the
> archive machine under the username `anonymous'. An attempt
> to do this will result in a password request. The password
> you supply should take the form of your e-mail address on
> your own machine, i.e. <username>@<address>. An example
> login would be as follows:
>
> Name: anonymous
> Password: joe@gan.csc.liv.ac.uk
>
> You should now be successfully connected to the Liverpool
> archive machine and the FTP prompt will appear. The set of
> commands supported by FTP can be viewed by using the command
> `help':
>
>
>
> August 19, 1992
>
>
>
>
>
> - 2 -
>
>
> ftp> help
>
> (To find the purpose of any one command, again use the
> command `help' this time followed by the command name.)
>
> To facilitate file transfer from the archive some sites may
> require binary transfer mode to be switched on as follows:
>
> ftp> binary
>
> For most sites (eg UNIX sites) this will not be necessary;
> if unsure it is advisable to always switch on binary mode.
> It may also be helpful to switch on hashing mode which will
> cause a hash symbol to appear every time 1k of data is
> transferred. This is useful when long files are being
> copied.
>
> ftp> hash
>
> Access to the archive is given at the top level of its
> directory structure. In order to browse through the archive
> and locate packages it will be helpful to understand
> something of the way in which the archive is organised.
>
>
> 2. Organisation of the archive
>
> The HP-UX archive is organised as a tree-structure of
> directories housing either software packages or
> documentation. The main directory structure is as follows:
>
>
> /hpux This holds the HP-UX software. It is itself
> organised into a number of subdirectories
> each of which house a set of related pack-
> ages.
> /TroffDoc This directory holds up-to-date copies of all
> documents relating to the archive, in troff
> format. In order to facilitate the printing
> of these documents you will need either AT&T
> troff or Gnu groff.
> /TextDoc This directory holds plain text versions of
> the documents held in /TroffDoc suitable for
> users who do not have troff facilities.
>
>
> Each directory (including the top level) contains its own
> README file which provides any necessary general information
> and a brief description of the directory contents. Apart
> from README files, most files held in the archive are stored
> in compressed form having a file type of .Z. The set of
> source files which constitute a software package are stored
> within /hpux in a single compressed tar archive file with a
> file type of tar.Z. Each package includes a README.LUCS file
>
>
>
> August 19, 1992
>
>
>
>
>
> - 3 -
>
>
> provided by the Liverpool site when the package was
> archived. The file /Conventions contains information
> describing the conventions used at Liverpool for archiving
> and compiling the software. This file should be read prior
> to obtaining and installing software.
>
> In order to copy a file it is necessary only to know the
> directory in which it is housed. The commands `ls' and `cd'
> can be used from within FTP to list and change directories
> respectively. In this way a user can browse around the
> archive. Files which summarise the contents of the /hpux
> directory are available from the /TroffDoc and /TextDoc
> directories. The file /TroffDoc/Catalogue.all.troff.Z holds
> a complete list of all archived software with descriptions.
> For users who do not possess troff a plain text version of
> the catalogue is available in /TextDoc/Catalogue.all.txt.Z.
> The file /TroffDoc/Catalogue.month.troff.Z contains a sum-
> mary of packages archived within the last month - a plain
> text version is available in /TextDoc/Catalogue.month.txt.Z.
> Catalogue files are synthesised automatically each day from
> the README.LUCS files and therefore reflect the current
> state of the archive. Alternatively, the file /ls-lR.Z holds
> a recursive directory listing of the archive. FTP can be
> used to fetch any of these files.
>
>
> 3. Copying files
>
> Any file can be copied from the archive using the FTP com-
> mand `get'. Once copied, compressed files will need to be
> uncompressed in one of two ways depending upon whether or
> not the file is a software package and thus compressed as a
> tar file. Furthermore, where an X11 package is copied the
> way in which it should be installed may require explanation.
> Thus, to illustrate these differences, the following files
> are copied and subsequently uncompressed/compiled in the
> examples below: the archive catalogue, in plain text form,
> held within the subdirectory /TextDoc; the spreadsheet pack-
> age `sc', stored in the subdirectory /hpux/Users; the xar-
> chie package from the subdirectory /hpux/X11. The latter
> package is an X windows package which provides a convenient
> method of accessing archive sites and retrieving data; xar-
> chie is described in more detail in section 6. Note that in
> order to successfully install an X11 package both imake and
> Xaw include files must be present on your system; if
> required these are available from the archive directory
> /hpux/X11.
>
> Firstly, to obtain the catalogue change into the directory
> /TextDoc:
>
> ftp> cd TextDoc
>
> The desired file, in this case the full catalogue, can now
>
>
>
> August 19, 1992
>
>
>
>
>
> - 4 -
>
>
> be fetched using the `get' command:
>
> ftp> get Catalogue.all.txt.Z
>
> The file will be transferred; as hashing has been turned on
> the progress of the transfer will be evident. On completion,
> the FTP prompt will reappear. To obtain the spreadsheet
> package `sc':
>
> ftp> cd ../hpux/Users
> ftp> get sc-6.21.tar.Z
>
> and similarly:
> ftp> cd ../X11
> ftp> get xarchie-1.3.tar.Z
>
> Any number of files can be transferred in the same way dur-
> ing an FTP session.
>
>
> 4. Ending the FTP session
>
> To logout from the archive site once all transfers have been
> completed, simply quit from FTP:
>
> ftp> quit
>
>
> 5. Uncompressing files and installing software
>
> As mentioned above, once any compressed files have been suc-
> cessfully obtained from the archive the way in which they
> are uncompressed depends upon whether they are documents (.Z
> files) from the /TroffDoc or /TextDoc directories or
> software (tar.Z files) from /hpux.
>
>
> 5.1. Documents:
>
> Documents can be unpacked using the `uncompress' command.
> So:
>
> $ uncompress Catalogue.all.txt.Z
>
> will uncompress the catalogue, generating a file named
> Catalogue.all.txt in your directory which may now be viewed
> or printed.
>
>
>
>
> 5.2. Software packages (excluding X11):
>
> To uncompress tar files the command `zcat' should be used.
>
>
>
> August 19, 1992
>
>
>
>
>
> - 5 -
>
>
> Thus for the spreadsheet:
>
> $ zcat sc-6.21.tar.Z | tar xvf -
>
> This will create a new directory, the name of which is the
> name of the package. To access the files within the package
> change into that directory and compile the files:
>
> $ cd sc-6.21
> $ make
>
> It should now be possible to use the package:
>
> $ ./sc
>
>
> 5.3. X11 packages:
>
> Remember that in order to successfully install X11 packages
> you must have both imake and Xaw include files installed on
> your system. The X11 package first needs to be uncompressed
> as above:
>
> $ zcat xarchie-1.3.tar.Z | tar xvf -
>
> This will again produce a directory containing the packaged
> files.
>
> $ cd xarchie-1.3
>
> The following command will run imake in order to generate a
> top level Makefile:
>
> $ xmkmf
>
> If the package includes a directory tree which contains
> other Imakefiles then the following should be performed:
>
> $ make Makefiles
>
> It may be necessary to resolve any makefile dependencies:
>
> $ make depend
>
> Finally:
>
> $ make
>
> The binary can now be run:
>
> $ ./xarchie
>
> Once the program runs satisfactorily the binaries, applica-
> tion defaults and library files can be copied into the
>
>
>
> August 19, 1992
>
>
>
>
>
> - 6 -
>
>
> appropriate system directories (as defined by imake) and the
> manual pages updated. This can be done using the single com-
> mand:
>
> $ make install install.man
>
>
>
> 6. Accessing other archive sites
>
> Using anonymous FTP to access archive sites requires the
> address of the site to be known. The xarchie software,
> retrieved in the example above, provides an alternative
> method of accessing anonymous ftp sites which does not
> require site addresses to be known by the user in advance.
> Xarchie provides an X windows interface through which it is
> possible to select from a large set of registered archive
> sites. The interface allows the user to specify search terms
> in order to locate sites containing relevant material; the
> contents of archive directories can be displayed and pack-
> ages selected for retrieval. The Liverpool HP-UX archive is
> currently being registered with xarchie servers and thus
> will shortly be accessible via the xarchie interface.
>
>
> 7. Submitting software to the HP-UX archive
>
> The porting and archive centre at The University of Liver-
> pool is very interested to hear from users who have public
> domain software which runs under HP-UX and which is not
> currently available from the Liverpool archive. Please e-
> mail the following with a view to making your software more
> widely available via the archive:
>
> ftp@csc.liv.ac.uk
>